package model

//菜单/节点表

type AuthNode struct {
	BaseModel
	ParentId   uint   `form:"parent_id" json:"parent_id" gorm:"default:0;comment:分类表category主键id/父级id"`
	Name       string `form:"name" json:"name" binding:"required" gorm:"not null;comment:节点名称"`
	App        string `form:"app" json:"app"  gorm:"not null;comment:应用名称"`
	Controller string `form:"controller" json:"controller"  gorm:"not null;comment:控制器名"`
	Action     string `form:"action" json:"action"  gorm:"not null;comment:方法名"`
	Method     string `form:"method" json:"method"  gorm:"size:10;not null;comment:请求的方式"`
	Route      string `form:"route" json:"route"  gorm:"not null;comment:路由"`
	IsRestful  uint   `form:"is_restful" json:"is_restful"  gorm:"type:tinyint(1);not null;default:1;comment:是否是资源路由 1 是  0 否"`
	IsNav      uint   `form:"is_nav" json:"is_nav"  gorm:"type:tinyint(1);not null;default:1;comment:是否显示在左侧导航栏 1 是 0 否"`
	Ico        string `form:"ico" json:"ico"  gorm:"comment:图标"`
}
